package offertest.test03;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

/**
 * @ClassName test
 * @Description
 * @Author ZJX
 * @Date 2025/4/7 21:28
 * @Version 1.0
 **/
public class Test3 {
    public static void main(String[] args) {
//        两个线程 交替打印1-100之间的奇数
        Thread t1 = new MyThread03();
        Thread t2 = new MyThread03();


        ArrayList<Integer> list = new ArrayList<>();
        Collections.addAll(list,1,4,6,7,4,4,6);


        t1.setName("第1个人");
        t2.setName("第2个人");

        t1.start();
        t2.start();
    }
}
